<template>
  <Inspectionefficiency title="处理效率" :inspectEfficiency="inspectEfficiency"/>
</template>
<script lang="ts" setup>
import {screenworkorder} from '@/api/screen/largeData'
import Inspectionefficiency from '@/views/large-data-screen/component/Inspection-efficiency.vue'

const inspectEfficiency = ref({
  avgTime: 0,
  maxTime: 0,
  minTime: 0
})

onMounted(() => {
  getscreeninspect()
})
//获取工单
const getscreeninspect = () => {
  screenworkorder({
    workOrderDT: 0,//工单处理日期类型 （0-全部 1 日 2周 3 月 4 年）
    workOrderTypeDT: 0 //工单类型统计日期类型  （0-全部   3 月 5 上月）

  }).then(res => {

    inspectEfficiency.value.avgTime = res.result.workOrderEfficiency.avgTime
    inspectEfficiency.value.maxTime = res.result.workOrderEfficiency.maxTime
    inspectEfficiency.value.minTime = res.result.workOrderEfficiency.minTime

  })
}
</script>
<style></style>
